#!/bin/sh
echo "  =====关闭logService服务======"
PROCESS=`ps -ef |grep java |grep -v grep|grep service_log-0.0.1-SNAPSHOT.jar|awk '{print $2}'`
for i in $PROCESS
do
  echo "Kill the $1 process [ $i ]"
  kill -9 $i
done
echo "  =====启动logService服务======"
nohup java -Xms300m -Xmx300m -jar service_log-0.0.1-SNAPSHOT.jar &
echo $! > savePid.txt
cat savePid.txt
rm  savePid.txt